
C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/include
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/lib/x86_64-linux-gnu

CFLAGS?=	-Wall -ggdb -W -O -mfma
LDFLAGS?=  

CC?=		gcc
LDLIBS?= -lrte_eal -lrte_ethdev -lrte_mbuf -lrte_mempool
INCLUDE = -I  /home/z/PF_RING/userland/libpcap-1.10.1

TEMPFILES?=
 
src = $(wildcard *.c)        
objs = $(patsubst %.c,%.o,$(src))
 
VERSION=1.0
TMPDIR=/tmp/socket-$(VERSION)


SOURCES = $(wildcard *.c)
OBJS = $(patsubst %.c,%.o,$(SOURCES))


SOCKET=  dpdk_helloworld dpdk_capture

all:	$(SOCKET) 


%.o:%.c 
	$(CC) $(CFLAGS) $(LDFLAGS) -c $< -o $@   $(LDLIBS) $(INCLUDE)

clean:
	rm -f $(SOCKET)  $(TEMPFILES) *.o 

.PHONY: clean install all tar


 
